import java.util.Scanner;

/**
 * @author gao
 * @date 2025/6/5 20:25
 */

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        String[] strNums = s.split(" ");
        int sum = 0;
        for (int i = 0; i < strNums.length; i++) {
            try {
                sum += Integer.parseInt(strNums[i]);
            } catch (NumberFormatException e) {
                sum += 0;
            }
        }
        System.out.println(sum);
    }
}